package com.simple.business.mapper.evaluation;

import com.github.zuihou.base.mapper.SuperMapper;
import com.simple.business.domain.dto.evaluation.EvaluationDTO;
import com.simple.business.domain.entity.evaluation.Evaluation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @desc
 * @Author SimpleTree
 * @Date 2025/2/10 14:34
 **/
@Repository
public interface EvaluationMapper extends SuperMapper<Evaluation> {
    void saveEvaluation(Evaluation evaluation);

    void updateByEvaluationId(Long evaluationId);

    List<Evaluation> queryEvaluations(@Param("model") EvaluationDTO evaluationDTO);

    Integer countEvaluations(@Param("model") EvaluationDTO evaluationDTO);

    void deleteEvaluation(Long evaluationId);
}
